package com.yyds.blackmagic.service;

import com.yyds.blackmagic.entity.Article;

import java.util.List;

public interface ArticleService {
    List<Article> findAll();

    List<Article> findAllByTime();

    Article findOneByTitle(String article_title);//通过文章标题查询

    Article findOneByContent(String article_content_md);//通过文章内容查询

    Article findOneById(int id);//通过Id查询


    Article addArticle(Article article);

    Article updateArticle(Article article);

    boolean delArticle(int id);
}
